package com.example.teststart.controller;


import com.liufei.starter.service.LocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.nio.charset.StandardCharsets;

@RestController
@RequestMapping("starter")
public class TestCustomStarterController {

    @Autowired
    private LocationService locationService;

    @RequestMapping("go")
    public String testStarter(){
        System.out.println(locationService.getDetailAddress());
        String s = new String(locationService.getDetailAddress().getBytes(), StandardCharsets.UTF_8);
        return locationService.getDetailAddress();
    }
}
